<?php

use yii\helpers\Html;
use common\widgets\ActiveForm;
?>
<div class="note note-info">
    <?php
    $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
        'fieldConfig' => [
            'options' => ['class' => 'mt-repeater-input'],
            'template' => "{label}\n{input}",
            'hintOptions' => ['class' => 'text-hint-info'],
            'errorOptions' => ['class' => 'help-inline help-inline-error'],
        ],
        'options' => ['class' => 'mt-repeater'],
    ]);
    ?>
    <div data-class="mt-repeater-item">
        <?= $form->field($model, 'number'); ?>
        <?= $form->field($model, 'name'); ?>
        <?= $form->field($model, 'mobile'); ?>
        <?= $form->field($model, 'gender'); ?>
        <?= $form->field($model, 'category_id'); ?>
        <?= $form->field($model, 'status'); ?>
        <?= $form->field($model, 'grade_id'); ?>

        <div class="mt-repeater-input">
            <?= Html::submitButton('查询', ['class' => 'btn btn-success mt-repeater-delete']) ?>
        </div>
    </div>
    <?php ActiveForm::end(); ?>
</div>